import request from '@/utils/request'

// 查询车辆销售列表
export function listVehiclesell(query) {
  return request({
    url: '/vehiclesell/vehiclesell/list',
    method: 'get',
    params: query
  })
}

// 查询车辆销售详细
export function getVehiclesell(vehicleid) {
  return request({
    url: '/vehiclesell/vehiclesell/' + vehicleid,
    method: 'get'
  })
}

// 新增车辆销售
export function addVehiclesell(data) {
  return request({
    url: '/vehiclesell/vehiclesell',
    method: 'post',
    data: data
  })
}

// 修改车辆销售
export function updateVehiclesell(data) {
  return request({
    url: '/vehiclesell/vehiclesell',
    method: 'put',
    data: data
  })
}

// 删除车辆销售
export function delVehiclesell(vehicleid) {
  return request({
    url: '/vehiclesell/vehiclesell/' + vehicleid,
    method: 'delete'
  })
}
